cmake_minimum_required(VERSION 3.19)
project(testNetWork LANGUAGES CXX)

find_package(Qt6 6.5 REQUIRED COMPONENTS Core NetWork)

qt_standard_project_setup()

qt_add_executable(testNetWork
    main.cpp
)

target_link_libraries(testNetWork
    PRIVATE
        Qt::Core
        Qt::Network
)

include(GNUInstallDirs)

install(TARGETS testNetWork
    BUNDLE  DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
